package com.csdj.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.lang.Nullable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 今晚几点睡Ada
 * @since 2022-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TUser对象", description="")
public class TUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "uid", type = IdType.AUTO)
    @Nullable
    private Integer uid;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "盐值")
    @Nullable
    private String salt;

    @ApiModelProperty(value = "电话号码")
    @Nullable
    private String phone;

    @ApiModelProperty(value = "电子邮箱")
    @Nullable
    private String email;

    @ApiModelProperty(value = "性别:0-女，1-男")
    @Nullable
    private Integer gender;

    @ApiModelProperty(value = "头像")
    @Nullable
    private String avatar;

    @ApiModelProperty(value = "是否删除：0-未删除，1-已删除")
    @TableLogic(value = "0",delval = "1")//逻辑删除
    @Nullable
    private Integer isDelete;




}
